package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.WorkflowRecord;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 项目审批 Service接口
 *
 * @author ganjun
 * @date 2024-11-16 21:20:36
 */
public interface IWorkflowRecordService extends IService<WorkflowRecord> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-16 21:20:36
     * @param request QueryRequest
     * @param workflowRecord workflowRecord
     * @return IPage<WorkflowRecord>
     */
    IPage<WorkflowRecord> findWorkflowRecordPage(QueryRequest request, WorkflowRecord workflowRecord);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-16 21:20:36
     * @param workflowRecord workflowRecord
     * @return List<WorkflowRecord>
     */
    List<WorkflowRecord> findWorkflowRecordList(WorkflowRecord workflowRecord);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-16 21:20:36
    * @param id
    * @return WorkflowRecord
    */
    WorkflowRecord findWorkflowRecordById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-16 21:20:36
     * @param workflowRecord workflowRecord
     */
    boolean createWorkflowRecord(WorkflowRecord workflowRecord);

        /**
     * 修改
     * @author ganjun
     * @date 2024-11-16 21:20:36
     * @param workflowRecord workflowRecord
     */
    boolean updateWorkflowRecord(WorkflowRecord workflowRecord);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-16 21:20:36
     * @param workflowRecord workflowRecord
     * @param workflowRecordIds workflowRecordIds
     */
    boolean deleteWorkflowRecord(WorkflowRecord workflowRecord,String workflowRecordIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-16 21:20:36
    * @param workflowRecordIds workflowRecordIds
    */
    boolean physicallyDeleteWorkflowRecord(String workflowRecordIds);
}
